import { axios } from '@/utils/request'

/**
 * 查询门店数据
 *
 * @author zj
 * @date 2022-09-06 10:28:47
 */
export function biOperatedDataPage (parameter) {
  return axios({
    url: '/biOperatedData/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 门店数据列表
 *
 * @author zj
 * @date 2022-09-06 10:28:47
 */
export function biOperatedDataList (parameter) {
  return axios({
    url: '/biOperatedData/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加门店数据
 *
 * @author zj
 * @date 2022-09-06 10:28:47
 */
export function biOperatedDataAdd (parameter) {
  return axios({
    url: '/biOperatedData/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑门店数据
 *
 * @author zj
 * @date 2022-09-06 10:28:47
 */
export function biOperatedDataEdit (parameter) {
  return axios({
    url: '/biOperatedData/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除门店数据
 *
 * @author zj
 * @date 2022-09-06 10:28:47
 */
export function biOperatedDataDelete (parameter) {
  return axios({
    url: '/biOperatedData/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出门店数据
 *
 * @author zj
 * @date 2022-09-06 10:28:47
 */
export function biOperatedDataExport (parameter) {
  return axios({
    url: '/biOperatedData/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}

/**
 * 导入门店信息
 *
 * @author cy
 * @date 2022-08-08 17:50:26
 */
 export function biOpreatedDataUpload (body) {
  return axios({
    url: `/biOperatedData/upload`,
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data: body,
    loading: true
  })
}

